<%-- 
    Document   : home
    Created on : Dec 23, 2011, 10:03:17 PM
    Author     : Ramesh
--%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<!DOCTYPE html>
<html>
    <head>
        <title>OPGEA Desktop</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <!--User Defined Imports -->
        <link rel="stylesheet" type="text/css" href="<spring:url value="/resources/qms/css/clock.css" />" type="text/css" media="all"/>
        <link rel="stylesheet" type="text/css" href="<spring:url value="/resources/qms/css/desktop.css" />" type="text/css" media="all"/>
        <link rel="stylesheet" type="text/css" href="<spring:url value="/resources/ext-4.0/resources/css/ext-all.css" />" type="text/css" media="all"/>
        <script type="text/javascript" src="<spring:url value="/resources/ext-4.0/ext-all-debug.js"/>" ></script>

        <script type="text/javascript" src="<spring:url value="/resources/qms/video/Video.js"/>"></script>
        
        <!--UI Imports-->
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/login/LoginInfo.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/desktop/DesktopViewport.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/desktop/StartMenu.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/desktop/TaskBar.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/company/CompanyBasicInfo.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/employee/EmployeeInfo.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/destination/DestinationViewport.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/destination/CreateDestination.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/reception/ReceptionViewport.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/waiting/WaitingViewport.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/token/TokenInfo.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/view/token/TokenDetailsGrid.js"/>"></script>
        
        
        <!--Store Imports-->
        <script type="text/javascript" src="<spring:url value="/resources/qms/data/store/TokenStore.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/data/store/WaitingTokenStore.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/data/store/DestinationTokenStore.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/data/store/PrefixStore.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/data/store/DestinationStore.js"/>"></script>
        <script type="text/javascript" src="<spring:url value="/resources/qms/data/store/EmployeeStore.js"/>"></script>

        <!--Util Imports-->
        <script type="text/javascript" src="<spring:url value="/resources/qms/utiljs/BusinessLogicValidation.js"/>"></script>
        
        
        <style type="text/css">
            .startMenuIcon{
                background-image: url(../images/desktop/om_start.jpg);
            }
            .userIcon{
                background-image: url(../images/desktop/member.gif);
            }
            .settingIcon{
                background-image: url(../images/desktop/gears.gif);
            }
            .logoutIcon{
                background-image: url(../images/desktop/logout.gif);
            }
            .addIcon{
                background-image: url(../images/shared/add.gif);
            }
            .removeIcon{
                background-image: url(../images/shared/delete.gif);
            }
            .tableRefreshIcon{
                background-image: url(../images/shared/table_refresh.png);
            }
            .errorCls{
                background-color: red;
                color: white;
            }
            
            .A1{
               background-color: yellow; 
            }
            .A2{
               background-color: seagreen; 
               color: white;
            }
            
        </style>
        
        <script type="text/javascript">
            Ext.onReady(function(){

                var desktopViewport = Ext.create("Qms.view.desktop.DesktopViewport",{
                            renderTo: Ext.getBody(),
                            bodyStyle:'color:pink'
                });
                
                
                var destktopViewport = Ext.getCmp('desktopViewport');
                var viewportHeight = desktopViewport.getHeight();
                var viewportWidth = desktopViewport.getWidth();
                
                desktopViewport.getLoginInfo();                
                desktopViewport.startMenuOn();
                desktopViewport.setStartMenuPosition(0,viewportHeight,true);
                desktopViewport.refreshWaitingScreenList();
                //desktopViewport.refreshDestinationScreenList();
            });
           
        </script>
    </head>
    <body>
    </body>
</html>
